﻿namespace InternetSpiderLib.Scenes.UrlClassifications
{
    /// <summary>
    /// 正则分类器
    /// </summary>
    public class RegexUrlClassification : BaseUrlClassification
    {
        public string Regex { get; set; }

        public override bool Matching(string url)
        {
            return System.Text.RegularExpressions.Regex.Match(url, Regex).Success;
        }
    }
}
